import { token } from './key'
import { ls } from './storage'

export default {
  common: {
    removeAll() {
      ls.removeAll()
    },
    token: {
      get() {
        return ls.get(token)
      },
      set(value) {
        ls.set(token, value)
      },
      remove() {
        ls.remove(token)
      }
    }
  }
}
